package com.sangu.website_m.controller;

import com.sangu.website_m.pojo.FormData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@Controller
@RestController
@RequestMapping("web")
public class WebController {

//    @RequestMapping("test")
    @PostMapping("test")
    public String test(FormData data){
        System.out.println(data);
//        map.forEach();
        return "/web/index.html";
    }

}
